package com.cgc.venus.server.core.harbor;
import com.cgc.venus.server.core.exception.VenusException;
import com.cgc.venus.server.core.harbor.model.Project;
import com.cgc.venus.server.core.harbor.model.Repository;
import com.cgc.venus.server.core.harbor.model.Tag;

import java.io.IOException;
import java.util.List;
/**
 * Created by harbor接口方法 on 2017/9/13.
 */
public interface HarborService {
        public List<Project> projectsQuery(String projectName,boolean isPublic)throws VenusException;
        public boolean projectsCreate(String projectName,boolean isPublic)throws VenusException;
        public boolean projectsDelete(String projectName)throws VenusException;
        public boolean repositoryDelete(String resName)throws VenusException;
        public List<Tag> getRepositorieTags(String imagesAddress,String repoName) throws VenusException;
        public boolean repositoryDelete(String resName,String tag)throws VenusException;
        //根据项目名称,查询镜像资源列表
        public List<Repository> getRepositories(String projectName,String repositoryNameQueryKey,int page,int page_size) throws VenusException;
}
